<?php $this->load->view('_inc/header_popup')?>

<?php echo form_open('cases/editandoCase')?>
<h1>Edição de Case</h1>
<?php echo form_hidden('id',$case->id)?>
<table>
    <tr>
        <td>
            <?php echo form_label('Nome:','inome')?>
            <?php echo form_input('nome',$case->case,'id=inome autofocus class=required')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('Data:','idata')?>
            <?php echo form_input('data',$case->data,'id=idata')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('Estado:','iestado')?>
            <?php echo form_dropdown('estado',$dropEstados,$case->estado_id,'id=iestado class=required')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('Descrição:','idesc')?><br>
            <?php echo form_textarea('descricao',$case->descricao,'id=idesc')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_submit('','Editar')?>
            <?php echo form_button('','Cancelar','class=cancela')?>
        </td>
    </tr>
</table>

<?php echo form_close()?>